package com.generalbackend.role.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.generalbackend.role.model.entity.RolePermission;
import com.generalbackend.role.model.query.RolePermissionQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* ClassName: RolePermission
* @Description 角色权限关联表Mapper
* @author tim.xie
* @date 2021-12-16 11:11
*/

@Mapper
@Repository
public interface RolePermissionMapper extends BaseMapper<RolePermission>{

    /**
    * 根据条件查询列表
    * @return
    */
    List<RolePermission> list(Page<RolePermission> page, @Param("queryOption") RolePermissionQuery rolePermissionQuery);


}
